package com.lixingye.meowstar.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lixingye.meowstar.model.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 猫大仙
 * @since 2025-01-14
 */
@Mapper
public interface MessageMapper extends BaseMapper<Message> {
    /**
     * 根据接收者用户id查询所有站内信
     * @param receiveUserId
     * @return
     */
    List<Message> selectByReceiveUserId(@Param("receiveUserId") Long receiveUserId);
}

